home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / mtgrap1c / video.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-29  |  1.2 KB  |  55 lines

  1. /*****************************************************
  2. ; Filename     : video.h
  3. ;
  4. ; Date         : 11-6-94
  5. ; Mod. Date    : 11-7-94
  6. ;
  7. ; Others    : Obtained from Ferraro
  8. ;        : VGA Trainer    (smith9@batis.bis.und.ac.za)
  9. ;        ; VGL20         (morley@camosun.bc.ca)
  10. ;****************************************************/
  11. #ifndef VIDEO_H
  12. #define VIDEO_H
  13.  
  14. #include "std_defs.h"
  15. #include <dos.h>
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. #define PAGE_0    (block) MK_FP(0xA000,0x0000)
  22. #define PAGE_1    page1
  23. #define PAGE_2    page2
  24.  
  25. extern    block page1,page2;
  26.  
  27. void    mtSetVGAMode(void);
  28. void    mtSetTextMode(void);
  29.  
  30. void    mtCPutPixel(int x, int y, int color);
  31. void    mtPutPixel(int x, int y, int color);
  32. int    mtGetPixel(int x, int y);
  33.  
  34. void    mtWaitRetrace(void);
  35.  
  36. //found in block.cpp
  37. block    mtAllocPage(int x1, int y1, int x2, int y2);
  38. void    mtFreePage(block page);
  39.  
  40. int    mtSetPage(block page);
  41. int    mtFlipPage(block page);
  42. int    mtCopyPage(block src, block dest);
  43. int    mtCopyBlk(int x1,int y1,int x2,int y2,int xoff,int yoff,block src,block dest);
  44. int    mtClipBlk(int *x1,int *y1, int *x2, int *y2);
  45.  
  46. void    mtClrScr(int color);
  47. void    mtSetWindow(int x1, int y1, int x2, int y2);
  48. void    mtResetWindow(void);
  49.  
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53.  
  54. #endif VIDEO_H
  55.